package com.mk.sql.service;

import com.mk.sql.bean.Strategy;
import com.mk.sql.mapper.StrategyMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author xuzn
 * @ClassName: RExcelService
 * @ProjectName generator_sql
 * @date 2020/9/22/5:02 下午
 */
@Service
public class RExcelService {

  @Autowired
  private StrategyMapper strategyMapper;

  @Transactional
  public int saveStrategies(List<Strategy> strategies) {
    int iadd = strategyMapper.addStrategyByBatch(strategies);
    return iadd;
  }
}
